import http from '@/utils/http'
import type { NoticeRoleResponse, noticeParams, noticeResponse } from '../types/notice'

enum API {
    NoticeAdd_URL ='/api/notice/content',
    NoticeRoleList_URL ='/api/acl/role/rolelist'
}

// 新增通知公告
export const reqAddNotice =(data:noticeParams)=>http.post<any,noticeResponse>(API.NoticeAdd_URL,data)

// 获取角色列表
export const reqNoticeRoleList =()=>http.get<any,NoticeRoleResponse>(API.NoticeRoleList_URL)